﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainSearch.aspx.cs" Inherits="Presentation.MainSearch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Role Search</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <asp:Panel ID="SearchCriteriaPanel" runat="server" 
            GroupingText="Search Criteria">
            <asp:Label ID="RoleNameLabel" runat="server" Text="RoleName"></asp:Label>
            &nbsp;&nbsp;
            <asp:TextBox ID="RoleNameTextBox" runat="server" Width="95px"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;
            <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
            &nbsp;
            <asp:DropDownList ID="StatusDropDownList" runat="server" Width="105px" 
                onselectedindexchanged="StatusDropDownList_SelectedIndexChanged" AutoPostBack="true">
            </asp:DropDownList>
            &nbsp;&nbsp;&nbsp;
            <asp:Label ID="UserLabel" runat="server" Text="User"></asp:Label>
            &nbsp;
            <asp:TextBox ID="UserTextBox" runat="server"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="AuthorityLabel1" runat="server" Text="Authority"></asp:Label>
            <br />
            <asp:CheckBoxList ID="AuthorityCheckBoxList" 
                runat="server" ClientIDMode="AutoID" 
                Height="52px" RepeatDirection="Horizontal" Width="315px" RepeatColumns="2" AutoPostBack="false" 
                >
              
            </asp:CheckBoxList>
            <br />
            
            <br />
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="GenerateReportButton" runat="server" Text="Generate Report" 
                Width="118px" onclick="GenerateReportButton_Click" BorderColor="#9999FF" />
            <br />
        </asp:Panel>
    
    </div>
    <asp:Panel ID="Panel1" runat="server" GroupingText="Report">
        <asp:GridView ID="RoleSearchGridView" runat="server" AutoGenerateColumns="False" 
            CellPadding="2" ForeColor="#333333" GridLines="None" Width="479px" AllowSorting="True"
            Height="117px"  AllowPaging="True" 
            PageSize="2" onpageindexchanging="RoleSearchGridView_PageIndexChanging" onsorting="RoleSearchGridView_Sorting" 
            >
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:HyperLinkField HeaderText="Role Id" DataTextField="RId" SortExpression="RId"  />
                <asp:HyperLinkField HeaderText="Role Name" DataTextField="RoName" SortExpression="RoName" />
                <asp:HyperLinkField DataTextField="AuName" HeaderText="Authority Name" SortExpression="AuName" />
                <asp:HyperLinkField DataTextField="LeName" HeaderText="Level Name" SortExpression="LeName" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
          &nbsp;&nbsp;&nbsp;&nbsp;
        <table style="width: 230px; height: 28px">
                    <tr>
                        <td style="width: 70px; height: 28px">
                            <asp:LinkButton ID="lbtnFirst" runat="server" OnClick="PageIndex_Changed" visible="false">First</asp:LinkButton></td>
                        <td style="width: 95px; height: 28px">
                            <asp:LinkButton ID="lbtnPrev" runat="server" OnClick="PageIndex_Changed" visible="false">Previous</asp:LinkButton></td>
                        <td style="width: 70px; height: 28px">
                            <asp:LinkButton ID="lbtnNext" runat="server" OnClick="PageIndex_Changed" visible="false" >Next</asp:LinkButton></td>
                        <td style="width: 70px; height: 28px">
                            <asp:LinkButton ID="lbtnLast" runat="server" OnClick="PageIndex_Changed" visible="false">Last</asp:LinkButton></td>
                        <td style="width: 200px; height: 28px">
                            
                            &nbsp;<asp:Label ID="lblCurrentInfo" runat="server" Text="Label" visible="false"></asp:Label>
                            <asp:Label ID="Label1" runat="server" Text="/" visible="false"></asp:Label>
                             <asp:Label ID="lblCount" runat="server" Text="Label" visible="false"></asp:Label></td>
                    </tr>
                </table>
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ErrorMessage="Please Select an item!" ControlToValidate="StatusDropDownList" 
            Font-Bold="False" ForeColor="Red" Operator="NotEqual" 
            ValueToCompare="Please Select"></asp:CompareValidator>
    </asp:Panel>
    </form>
</body>
</html>
